package com.acme.bankapp.service.bank;

import com.acme.bankapp.domain.bank.AbstractAccount;
import com.acme.bankapp.domain.bank.Bank;
import com.acme.bankapp.domain.bank.Client;

/**
 * Created by anton on 8/18/14.
 */
public class BankService {
    public static void addClient(Bank bank, Client client) {
        bank.addClient(client);
    }
    public static void printMaximumAmountToWithdraw(Bank bank) {
        for (Client client : bank.getClients()) {
            AbstractAccount acc = client.getAccount();
            System.out.println(acc.maximumAmountToWithdraw());
        }
    }
}
